package com.ruoyi.mq.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;

/**
 * @author jierui
 * @package com.ruoyi.mq.config
 * @date 2021/7/2-10:52
 * @description:
 */
@Slf4j
public class RabbitConfirmCallback  implements RabbitTemplate.ConfirmCallback{
    @Override
    public void confirm(CorrelationData correlationData, boolean ack, String cause) {
        log.info("=======ConfirmCallback=========");
        log.info("correlationData = " + correlationData);
        log.info("ack = " + ack);
        log.info("cause = " + cause);
        log.info("=======ConfirmCallback=========");
    }

}
